package com.moli.iov.down.command.design.command.param.result.impl;

import com.moli.iov.down.model.dto.req.VehicleParamDto;
import com.moli.iov.down.command.codec.decode.bean.extend.QueryResExtendBean;
import com.moli.iov.down.command.design.command.param.result.ParamQueryResultCommand;

/**
 * <p>
 *  实时数据上报频率， 单位： 秒
 * </p>
 *
 * @author: zql
 * @Date: 2019/4/26 18:18
 */
public class DataFrequencyCommand implements ParamQueryResultCommand {

    @Override
    public VehicleParamDto execute(VehicleParamDto vehicleParamDto, QueryResExtendBean qreb) {

        vehicleParamDto.setReportingFrequency(Integer.parseInt(qreb.getValue()));

        return vehicleParamDto;
    }
}
